package com.skplanet.rade.controller.api;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class BoardAPIController {
	
	@Autowired
//	private BoardService boardService;

	@ResponseBody	
	@RequestMapping( value = { "/api/1.0/list", "/api/1.0/list.json" }, method = RequestMethod.GET, headers = { "Accept=application/json" } )
	public Map<String, Object> list() {	
		
		HashMap<String, Object> mapJSON = new HashMap< String, Object >();

		mapJSON.put( "result", "success" );
		
		mapJSON.put( "message", "ok" );
		
		return mapJSON;
	} 
		
}
